a=[1,9,7,3,2,5,3,4,10]
b=['a','c','d','a','z','g','l','e']
def cmp(a,b):
    if a>b:
        return 1
    elif a==b:
        return 0
    else:
        return -1

a.sort(cmp)
b.sort()
print a
print b